package com.qf.service.impl;

import com.qf.dao.UserDao;
import com.qf.dao.impl.UserDaoImpl;
import com.qf.entity.User;
import com.qf.service.UserService;

/*
杨威
2021/9/19
18:17
*/
public class UserServiceImpl implements UserService {
    UserDao userDao=new UserDaoImpl();
    @Override
    public User selectUser(String userName, String passWord) {
        User user = userDao.selectByUserName(userName);
        if(user==null||!user.getPassWord().equals(passWord)){
            return null;
        }
        return user;
    }
}
